From 47193a4437f18cce75230e0fb1ca3b3c78fec7b0 Mon Sep 17 00:00:00 2001 From: Eric Trudeau Date: Fri, 12 Jul 2013 13:30:48 -0400 Subject: [PATCH] xen/arm: Clear the IRQ_GUEST bit in desc->status when releasing an IRQ While adding support for guest domU IRQs, I noticed that release_irq did not clear the IRQ_GUEST bit in the IRQ's desc->status field. This is probably not a big deal since not many situations are likely to arise where an IRQ is sometimes host and sometimes guest. Signed-off-by: Eric Trudeau Acked-by: Stefano Stabellini --- xen/arch/arm/gic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index cafb68110a..ccce56543c 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -522,6 +522,7 @@ void __init release_irq(unsigned int irq) action = desc->action; desc->action = NULL; desc->status |= IRQ_DISABLED; + desc->status &= ~IRQ_GUEST; spin_lock(&gic.lock); desc->handler->shutdown(desc); -- 2.30.2